import {Component, OnInit} from '@angular/core'

@Component({
  selector: 'app-news',
  templateUrl: './news.component.html',
  styleUrls: ['./news.component.scss']
})
export class NewsComponent implements OnInit {
  public title = '我是一个新闻组件'
  public userinfo: object = {
    name: 'jack123',
    n: 1232222
  }
  public content = '<h2>我是html</h2>'
  public arrT: Array<string> = ['aaa', 'bbb', 'ccc']
  public t1: any[] = [12, '你好', true]
  public userList: any[] = [{name: 'tom', age: 12}, {name: 'lisi', age: 34}, {name: 'wagnwu', age: 90}]
  public myInfo: any[] = [
    {
      type: 1,
      list: [
        {
          name: 'abc'
        },
        {
          name: '23'
        },
        {
          name: '333'
        }]
    },
    {
      type: 2,
      list: [
        {
          name: 'dfd'
        },
        {
          name: '2hh3'
        },
        {
          name: '333433'
        }]
    }
  ]
  public imgurl = "http://img0.imgtn.bdimg.com/it/u=3386247472,87720242&fm=26&gp=0.jpg"
  constructor() {
  }

  ngOnInit(): void {
  }

}
